package com.seven.alert.sms;

import com.aliyuncs.CommonRequest;
import com.aliyuncs.CommonResponse;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.exceptions.ServerException;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.profile.DefaultProfile;
import com.seven.alert.properties.BaseSms;

import java.util.HashMap;

public class SendSmsService {

    private BaseSms sms;

    public SendSmsService(BaseSms sms) {
        this.sms = sms;
    }

    public String send(String targetInfo, HashMap<String, Object> param) throws Exception {
        return sms.sendSms(targetInfo, param);
    }
}
